<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>笔记</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="css/screen.css" rel="stylesheet" type="text/css">
<link href="css/skin.css" rel="stylesheet" type="text/css" />
<link href="css/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/dateTime.js"></script>

<script type="text/javascript"
	src="<%=path %>/My97DatePicker/WdatePicker.js"></script>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

tr {
	background-color: expression((   this.sectionRowIndex %     2 ==     0)?"#EFF7FF":"#F0FBEB"
		)
}

td {
	background-color: expression((   this.cellIndex %   2 =     0)?"":((this.parentElement.sectionRowIndex%2==0
		)?"#EFF7FF":"#F0FBEB" ) )
}
</style>
</head>

<body>
	<div style="width:80%" align="right"><a href="ClientManagement/AddNote.jsp"><B>添加一个笔记</B></a></div>
	<table border="1" cellspacing="0" width="70%" class="t1" align="center">

		<tr>
			<td width="12%">笔记编号</td>
			<td width="13%">笔记名称</td>
			<td width="30%">笔记内容</td>
			<td width="10%">记录人</td>
			<td width="8%">笔记时间</td>
			<td width="5%">附件数</td>
			<td width="30%">操作</td>
		</tr>
		<s:iterator value="notelist" id="note">
			<tr>
				<td><s:property value="#note.noteid" /></td>
				<td><s:property value="#note.title" />
				</td>
				<td><s:property value="#note.text"  escape="false"/></td>
				<td><s:property value="#note.name" /></td>
				<td><s:property value="#note.date" />
				</td>
				<td><s:property value="#note.attno" /></td>
				<td><a
					href="<s:url action="showallattachment1">
    		<s:param name="note.noteid" value="#note.noteid">
    		</s:param>
    		</s:url>">
						查看附件 </a> &nbsp;&nbsp; <a
					href="<s:url action="showonenote1">
    		<s:param name="note.noteid" value="#note.noteid"></s:param>
    		<s:param name="note.bizid" value="#note.bizid"></s:param>
    		</s:url>">
						修改 </a> &nbsp;&nbsp; <a
					href="<s:url action="deletenote1">
			<s:param name="note.noteid" value="#note.noteid"></s:param>
			<s:param name="note.bizid" value="#note.bizid"></s:param>
			</s:url>"
					onclick="return confirm('确定删除？')?true:false;">删除 </a>
				</td>
			</tr>
		</s:iterator>
		<tr>
					<td align="center" colspan="6">共<s:property
					value="session.notetotalpage" />页&nbsp;&nbsp;&nbsp;第<s:property
					value="pageNow+1" />页&nbsp;&nbsp;&nbsp;<s:if test="pageNow>0">
					<a
						href="<s:url action="showallnote"><s:param name="pageNow"  value="pageNow-1"/></s:url>">上一页</a>&nbsp;&nbsp;&nbsp;</s:if>
				<s:if test="pageNow+1 !=#session.notetotalpage">
					<a
						href="<s:url action="showallnote"><s:param name="pageNow" value="pageNow+1"/></s:url>">下一页</a>
				</s:if></td></tr>
		<tr>
			<td colspan="7" align="right"><a href="showallbusiness">返回</a></td>
		</tr>
	</table>
</body>
</html>
